﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utilities;

namespace StockImport.http
{
    [Serializable]
    public  class UpdateResult
    {
        protected String _message;
        public String 操作 { get; set; }
        public DateTime 資料日期 { get; set; }
        public bool result { get; set; }
        
        public String Message {
            get    {
                        return 操作 + " " + DateUtils.toShortDateFormat(資料日期) + _message;
                       }
            set { _message = value; }        }
        public String MessageHeader { get; set; }
        public String OriRequest { get; set; }
        public String Content { get; set; }
        public String StoreFileName { get; set; }
        public bool UrlResult { get; set; }
        public object Attachment {get;set;}        
        public bool   hasContent()
        {
            if (String.IsNullOrWhiteSpace(Content))
                return false;
            return true;
        }

    }

}
